#include <bits/stdc++.h>
using namespace std;

int main() {
    int n, b, cnt = 0;
    cin >> n >> b;
    for (int i = 1; i <= n; ++i)
        if (i % b == 0)
            ++cnt;
    cout << cnt << endl;
    return 0;
}